package com.ln.cmsln.controller.bai;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
/**
 * 
 * @ClassName: DispatcherRoleController.java
 * @Description: 角色跳转页面控制层
 * @author 白宇翔
 * @date 2022年2月15日上午8:16:20
 *
 */
@Controller
@RequestMapping("/dispatcherRoleController")
@CrossOrigin
public class DispatcherRoleController {

	
	//跳转到角色添加页面
	@RequestMapping("/toaddUser")
	public String toaddUser(){
		return "role/add";
	}
	
	//跳转到角色赋权限页面
	@RequestMapping("/asignUser")
	public String asignUser(String id ,Model model){
		model.addAttribute("id",id);
		return "role/asign";
	}
	
	
}
